  Meteor.publish("tasks", function () {
    return Tasks.find({
      $or: [
        { private: {$ne: true} },
        { owner: this.userId }
      ]
    });
  });

Meteor.publish('singleTask', function(id) {
  check(id, String);
  return Tasks.find(id);
});

var liveDb = new LiveMysql(Meteor.settings.mysql);

Meteor.publish('findStrByMd5', function(md5_str){
  if (!md5_str) return null;
  return liveDb.select(
    "SELECT * FROM t_demo_md5 WHERE `MD5` LIKE '"+md5_str+"%' LIMIT 1",
    [ { table: 't_demo_md5' } ]
  );
});
